PeachDrawing.Core

PeachDrawing.Core.Pen

Pen.SetDashPattern(double[], double) Method

Sets an explicit numeric dash pattern (e.g. from SVG’s stroke-dasharray/ stroke-dashoffset), overriding DashStyle with a custom pattern. pattern and offset are in the same absolute units as Width - a backend that needs a unit-normalized dash array (e.g. a GDI+-style one expressed as multiples of pen width rather than absolute lengths) converts when it reads these. An empty pattern reverts to a solid line.

public void SetDashPattern(double[] pattern, double offset);

Parameters

pattern System.Double[]

offset System.Double